package cn.ym.pet.service;

import cn.ym.basic.util.AjaxResult;
import cn.ym.basic.util.PageList;
import cn.ym.order.domain.OrderPetAcquisition;
import cn.ym.pet.domain.SearchMasterMsg;
import cn.ym.basic.service.IBaseService;
import cn.ym.pet.dto.OrderDto;
import cn.ym.pet.query.SearchMasterMsgQuery;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author ym
 * @since 2022-11-16
 */
public interface ISearchMasterMsgService extends IBaseService<SearchMasterMsg> {

    //用户发布寻主消息
    AjaxResult publish(SearchMasterMsg searchMasterMsg, HttpServletRequest request);

    PageList<SearchMasterMsg> user(SearchMasterMsgQuery query, HttpServletRequest request);

    PageList<SearchMasterMsg> toHandle(SearchMasterMsgQuery query, HttpServletRequest request);

    PageList<SearchMasterMsg> finish(SearchMasterMsgQuery query, HttpServletRequest request);

    PageList<SearchMasterMsg> toSearchMasterPool(SearchMasterMsgQuery query, HttpServletRequest request);

    //拒单
    void reject(Long id);
    //接单
    void accept(OrderDto orderDto);
}
